<%@ page contentType="text/html; charset=utf-8" language="java"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@include file="/static/common/header.jsp"%>
<%@include file="/static/common/easyui.jsp"%>
<link href="${ctx}/static/css/main.css" rel="stylesheet">
<html>
<head>
<script language="javascript">
function setButtonLink(){
	if(document.referrer==""){
		self.close();
	}else{
		history.back(-1);
	}
	
} 
function closeWindow() {
	parent.closeWindow();
}
function refreshFrame(opt) {
	parent.refreshFrame(opt);
}
function refreshData(opt) {
	parent.refreshData(opt);
}
$(function() {
<c:if test="${execJS!=null}">
${execJS}
</c:if>
});
function backToUrl(url){
	window.location.href = '${ctx}'+url;
}
</script>
</head>
<body style="overflow:hidden">
<table width="400px" align="center" border="0" cellspacing="0" cellpadding="4" height="300px">
          <tr>
            <td align="center" class="alertInfo">
                <c:if test="${infoMsg==null}"> 
                <img src='${ctx}/static/images/per_czRight.gif'>
				</c:if>
                <c:if test="${infoMsg!=null}">
                <img src='${ctx}/static/images/Alert_01.png' height="80">
				</c:if>
             </td>
            <td align="center" class="alertInfo">
			 <c:if test="${infoMsg==null}"> 
				<br/>操作已完成！ </c:if>
                <c:if test="${infoMsg!=null}">
                <h3><strong> ${infoMsg} </strong></h3></c:if>
			<form name="myform">
                <c:if test="${callJS==null && backToUrl==null}">
                  <a href="javascript:void(0)" onClick="closeWindow();" id="btnadd" class="easyui-linkbutton" iconCls="icon-ok" plain="false">  确   定  </a>
				</c:if>
                <c:if test="${callJS!=null}">
					<a href="javascript:void(0)" onClick='${callJS}' id="btnadd" class="easyui-linkbutton" iconCls="icon-ok" plain="false">  确   定  </a>
				</c:if>
				<c:if test="${backToUrl!=null}">
					<a href="javascript:void(0)" onClick="backToUrl('${backToUrl}');" id="btnadd" class="easyui-linkbutton" iconCls="icon-ok" plain="false">  确   定  </a>
				</c:if>
              </form>			  
			</td>
          </tr>
        </table>
</body>
</html>